import React from "react"
import { Link } from "react-router-dom"
import * as styles from './index.module.less'
import logo from '../assets/image/logo.png'

export default function Hmoe() {
    const isIframe = Boolean(new URLSearchParams(window.location.search).get('iframe'))

    return <div className={styles.app}>
        <img className={styles.logo} src={logo} alt="空"></img>
        <img className={styles.logo} src={logo} alt="空"></img>
        <div className={styles.mian}>
            <div className={styles.title}>YingChuan</div>
            <div className={styles.tag}>React Template</div>
            <div className={styles.description}>点击<Link to='/game' style={{ color: 'red' }}>game</Link>跳转到井字棋游戏(react 案例小游戏)</div>
            {isIframe ? <div>iframe</div> : null}
        </div>
    </div>
}